Properly handle job failure when the job gets killed.