Register a handler to be invoked when an activity fails.
Function called with the activity error payload.
Register a handler to be invoked when an activity fails.