- added methods to the ThreadPool class to terminate the ThreadPool