/** * {@inheritDoc} */ @Override public final void close() { this.taskExecutionService.close(); this.annotationListener.close(); this.toolProgressListener.close(); try { this.serviceReg.unregister(); this.serviceReg = null; } catch ( IllegalStateException exception ) { // Ignore; we're closing anyway... } onBeforeCloseDialog(); setVisible( false ); dispose(); }