Fixes #127 - socket is closed issue with pools