Exit button in Swing apps works