Adding update to job status at the end of the job script