docs: function() {
            // Our connection is dead, stop processing ICE candidates
            if (_iceProcessor) _iceProcessor.setPeerConnection(null);
            if (_stateLogger) _stateLogger.stop();
  
            qos.stopCollecting();
  
            if (_peerConnection !== null) {
              if (_peerConnection.destroy) {
                // OTPlugin defines a destroy method on PCs. This allows
                // the plugin to release any resources that it's holding.
                _peerConnection.destroy();
              }
  
              _peerConnection = null;
              api.trigger('close');
            }
          }