attempt to fix a crash on OSX when quitting a game with a bot