Stops the pool if still running and joins any remaining workers.
Declared in <util/threadpool.h>
<util/threadpool.h>
~ThreadPool();