internal static async void OnBotShutdown(Bot bot) { if (Bot.GetRunningBotsCount() == 0) { Logging.LogGenericInfo("Main", "No bots are running, exiting"); await Utilities.SleepAsync(5000).ConfigureAwait(false); // This might be the only message user gets, consider giving him some time ShutdownResetEvent.Set(); } }