added a WindowListener in the constructor that overrides the windowsClosing method to dispose the TestChooser dialog. code tested with positive result for issue#85.