Register a handler to be called when a shutdown is requested. Warning: the delegate may be called in an arbitrary thread.
See Implementation
Register a handler to be called when a shutdown is requested. Warning: the delegate may be called in an arbitrary thread.