safe_exit
