onClose

abstract fun onClose(release: (Throwable?) -> Unit)