Fix all unit tests to cleanly shutdown the pool when they finish.