onDispose

open fun onDispose(ctx: KoolContext)

Called on app shutdown - either because the app reloaded and the old version is about to be discarded or the application is about to close.