Fixing problems with the bot not restarting