Fix a couple small bugs as well as allow you to construct the thread pool with your own thread factory.