pub fn exit(code: i32) -> !
Terminates the current process with the specified exit code.
This function must be used instead of std::process::exit as it runs the on_process_exit.
std::process::exit
on_process_exit