Close the threadpool, so the threads are really being disposed. Fixes #262