Deleting threadpool