Check to make sure your program Auto-close list for your profile does not close windows with the title of window, Window, or Explorer.