Fix the message box showing twice when stopping the bot