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

When a jobdir is removed the job.log file handler is being left open. This will close the job.log when a job re-scan is done. You can test it by deleting a jobdir and then running `sudo lsof -p <pid> | grep job.log`