Use api_exit_*