Subwindows close when parent windows do