Raise event with two parameters instead of mutating Error.
PlanState: support retrying a task and continuing.