Regognize all terminal states in StoppingBehavior

TASK_FAILED is a valid terminal task state.