Tracking some task metrics even during failures.