Stop the application if there is an error while loading the bot.