'Unregister all resources.'

def unregister_resources(self):

    for (res_name, res) in self._resources.items():
        if (res_name in self._tracked_resource_mappings):
            res.unregister_events()
    self._resources.clear()
    self._tracked_resource_mappings.clear()
