Record the parent window that opens a textfile window so only child windows are closed instead of all.