Add fail-quest support to SCRIPT_COMMAND_TERMINATE_COND