Set inClose := true, before closing children.