some more cleanup around pool management.
TODO: Make pool handling smarter, handle keyboardinterrupt