Stop threadpool.