Fix #173 leaking threads when pruning the pool
White space
fix tests
Merge pull request #174 from pitr-ch/pools

Fix leaking threads when pruning the pool