job_event: close the event file when done

When the job is done, we don't have to keep the job event log file open because
there will be no more events added to this job.