This post includes an example that uses an autoload singleton. Basically if you have nodes that you are worried about being orphaned, they need to inherit from a script class that can listen to a signal queue_free() them. I’m not aware of any other blanket method like that.
Otherwise I might recommend looking at why your nodes are being orphaned in the first place, and putting in logic to free them instead. Memory leaks suck!