Fixing issue with ensuring that only a single instance of the bot is running.