pub type TerminateHook = Box<dyn FnOnce(i32) + Send>;
Called once, with the signal’s number, on its own thread.
pub struct TerminateHook(/* private fields */);