I don't like the JFrame.EXIT_ON_CLOSE option very much. If there's a thread writing a file, or downloading something the option will be killed before it can complete. Instead, I was trying to terminate the program gracefully by destroying the GUI window: option ve