enhance thread pool shutdown by first canceling jobs to allow graceful p...

...ool shutdown