There is an error when exiting the game.