Better handling of workflows that throw errors before writing a status file