open class Scope { fun deregister() { FX.primaryStages.remove(this) FX.applications.remove(this) FX.components.remove(this) } }