Replace AbstractWindowListener with AWT's WindowAdapter. Issue #108.