Move window position saving to OnDestroy
controlWindowPos is private