code: function () {
      if (!self.connections.length) {
        self.removeListener('remove', remove);
        self.closing = false;
        return callback();
      }
    }
docs: When all of the connections have been removed, call the callback.