fix job.log file handler was left open when jobdir is removed