safe_call shutdown