asFailure

Tries to parse the payload as TaskFailedPayload if the event type matches.