Invoked when there is any error in the ongoing task. The metrics tool can use this information to attach to the ongoing transaction.
Exception thrown in the running task.