Fixing an issue with bots not restarting correctly.