Fixed JFrame exit code