added reference counting to shutdown pools when no connectors
Merge pull request #934 from andytaylor/master

added reference counting to shutdown pools when no connectors