Addition of watchjob and code to close watchjob