Registers a cleanup callback on the currently active scope, if there is one.
The cleanup callback to register.
Registers a cleanup callback on the currently active scope, if there is one.