void () { JavaFXPlatformHelper.removeListeners(myEditorController, myListener, mySelectionListener); myEditorController = null; try { if (myClassLoader != null) { JavaFXPlatformHelper.setDefaultClassLoader(myParentClassLoader); myClassLoader.close(); myClassLoader = null; } } catch (IOException e) { LOG.info(e); } myCustomComponents = null; Thread.currentThread().setUncaughtExceptionHandler(null); }