This change addresses bug #153418 by ensuring that nodes are handled correctly when closing their children. Fixes #153418
kts