Destructor.
~thread_pool();
Automatically stops and joins the pool, if not explicitly done beforehand.