It's important to order out child windows before parent window relationship is broken.