code: function() {
          if (this.drawingHole) {
              this.polygon.geometry.removeComponent(this.line.geometry);
              this.restoreFeature(true);
          }
          return OpenLayers.Handler.Path.prototype.cancel.apply(this, arguments);
      }
docs: APIMethod: cancel
  Finish the geometry and call the "cancel" callback.