Stops the timer when the user pauses or the level ends