Adding thread pool shutdown