code: private void cleanup() {
  		if (zoomToRectangleGroup != null) {
  			container.remove(zoomToRectangleGroup);
  			zoomToRectangleGroup = null;
  		}
  		if (escapeHandler != null) {
  			escapeHandler.removeHandler();
  			escapeHandler = null;
  		}
  		mapPresenter.getContainerManager().removeVectorContainer(container);
  	}
docs: ------------------------------------------------------------------------