Ensure game is shutdown if server throws exception (#9742)