Problem summary When closing a comp or exiting Nuke, the onDestroy callback will be thrown twice. This behaviour is new with Nuke11.0 and is regressive with Nuke10.5
This behaviour does not happen when deleting a node within the script, only on exit.
Steps to reproduce
1) Open Nuke
2) Create a Group node
3) Copy/Paste the following into the Script Editor and execute it: