private async void BeginExit() { _IsExiting = true; LoggingManager.Log.Info("Exiting, this will take a few seconds..."); await DiscordClient.StopAsync(); await StreamlabsClient.StopAsync(); LoggingManager.Flush(); await Task.Delay(3000); Environment.Exit(0); }