pub fn set_panic_cleanup(f: impl Fn() + Send + Sync + 'static)
Register a cleanup callback (e.g. leave alternate screen) run before crash I/O.