code: function() {
          this.deactivate();        
          OpenLayers.Control.prototype.destroy.apply(this, arguments);        
          if (this.gratLayer) {
              this.gratLayer.destroy();
              this.gratLayer = null;
          }
      }
docs: APIMethod: destroy