There's already a test ("repeated failures lead to task set abortion") that ensures that a job is failed after MAX_TASK_FAILURES task failures -- was this not working properly?