Set the task to failed state.
This should be invoked after any event where the appropriate behavior at the next RESET RECOVER operation is to actually reset the task.
References _failed.