Explicitly close ThreadPool from multiprocessing to ensure no leaked threads