save main window location before shutting down (win)