Log to file when the game closes