added reference counting to shutdown pools when no connectors