added exit to the JFrame close operation