Just close the Swing game window when you finish a level