Handling bad files in the job directory.