code: def project_closed(self, project):
          
  
          for node in project.nodes:
              if node.id in self._nodes:
                  del self._nodes[node.id]
docs: Called when a project is closed.
  
          :param project: Project instance