end application when TestChooser dialog is closed

added a WindowListener in the constructor that overrides the windowsClosing method to dispose the TestChooser dialog. 
code tested with positive result for issue#85.
issue#85 short approach - setDefaultCloseOperation
Merge pull request #117 from maany/issue#85

Issue#85 fix from maany