code: public void onDeactivate() {
  		onDoubleClick(null);
  		menu.destroy();
  		menu = null;
  		mapWidget.setContextMenu(null);
  		mapWidget.unregisterWorldPaintable(distanceLine);
  		mapWidget.unregisterWorldPaintable(lineSegment);
  	}
docs: Clean everything up.