code: function removeFromDictionary () {
        action.removeListener('started', removeFromDictionary);
        action.removeListener('killed', removeFromDictionary);
        assert(
          self._peerDictionary[key], 'The entry should exist because this is ' +
          'the only place that can remove it'
        );
        delete self._peerDictionary[key];
      }
docs: TODO Investigate whether EventEmitter with action will provide a memory leak.