def METHOD_NAME(self):
    if self.iface_ifc is not None:
        if self.connected is True:
            self.iface_ifc.Disconnect()
            self.connected = False
        if self.new_network is not None:
            self.iface_ifc.RemoveNetwork(self.new_network)
            self.new_network = None
        if self.old_network is not None:
            self.iface_ifc.SelectNetwork(self.old_network)
            self.old_network = None