code: function() {
      const model = L.extend({}, this._resultsModel, { points: this._latlngs });
  
      this._locked = false;
  
      L.DomEvent.off(this._container, 'mouseover', this._handleMapMouseOut, this);
  
      this._clearMeasure();
  
      this._captureMarker
        .off('mouseout', this._handleMapMouseOut, this)
        .off('dblclick', this._handleMeasureDoubleClick, this)
        .off('click', this._handleMeasureClick, this);
  
      this._map
        .off('mousemove', this._handleMeasureMove, this)
        .off('mouseout', this._handleMapMouseOut, this)
        .off('move', this._centerCaptureMarker, this)
        .off('resize', this._setCaptureMarkerIcon, this);
  
      this._layer.removeLayer(this._measureVertexes).removeLayer(this._captureMarker);
      this._measureVertexes = null;
  
      this._updateMeasureNotStarted();
      this._collapse();
  
      this._map.fire('measurefinish', model, false);
    }
docs: return to state with no measure in progress, undo `this._startMeasure`