save window size before exit