Clean up code that call the pause of the game.