remove thread pool