Trying a shutdown hook to terminate the scheduling pool