Split jobDone into jobDone and jobFail