code: function destroy(self, connections) {
    // Destroy all connections
    connections.forEach(function(c) {
      // Remove all listeners
      for (var i = 0; i < events.length; i++) {
        c.removeAllListeners(events[i]);
      }
      // Destroy connection
      c.destroy();
    });
  
    // Zero out all connections
    self.inUseConnections = [];
    self.availableConnections = [];
    self.nonAuthenticatedConnections = [];
    self.connectingConnections = [];
  
    // Set state to destroyed
    stateTransition(self, DESTROYED);
  }
docs: Destroy the connections