close companion window with main window