mark job failed on error