code: def finalize(self):
          
          logger.debug("Finalizing: {}".format(self))
  
          # Disconnect signals
          self.collector.sigContentsChanged.disconnect(self.collectorContentsChanged)
          self._configTreeModel.sigItemChanged.disconnect(self.configContentsChanged)
          self.sigInspectorChanged.disconnect(self.inspectorSelectionPane.updateFromInspectorRegItem)
          self.customContextMenuRequested.disconnect(self.showContextMenu)
docs: Is called before destruction (when closing).
              Can be used to clean-up resources.