Add RemoveTmpdir method on job, and make sure it executes in case of error