Quit JVM when closing window.

Added the EXIT_ON_CLOSE operation to the main window's frame. This tells
the JVM to shut down when the window is closed.