change launch of jobs : add Shutdown hook + tempdir