removed reference to task from inner state machine, instead added failure all in task update