'Perform a clean up for the class
:param self: A NetworkManager object
:type self: NetworkManager
:return: None
:rtype: None
..note: The cards in _exclude_shutdown will not set to the original mac address
since these cards are not changed the mac addresses by the program.'

def on_exit(self):

    for interface in self._active:
        if (interface not in self._exclude_shutdown):
            adapter = self._name_to_object[interface]
            mac_address = adapter.original_mac_address
            self.set_interface_mac(interface, mac_address)
    if (hasattr(toggle_networking, 'has_disable_nm') and toggle_networking.has_disable_nm):
        toggle_networking(True)
