code: def finalize(self):
          
          logger.debug("Finalizing: {}".format(self))
          self.plotItem.scene().sigMouseMoved.disconnect(self.mouseMoved)
          self.plotItem.close()
          self.graphicsLayoutWidget.close()
docs: Is called before destruction. Can be used to clean-up resources