Fix a bug on exit. Don't call onProjectNodesCleared in the destructor
of Nodegraph