Track and log failures