onClose

open override fun onClose()

Is called when the app needs to get closed (e.g. when it is not available anymore).