Clear last scheduler error message on successful process spawn
Add missing error code to api_get_error_code_name function
Log external references on session destroy