onCleanup

abstract fun onCleanup()

Removes all associated Effects and any transient state.

The method is typically called when the owner of this handler is being released and needs to cleanup.