fixes #56: store correct window settings when closing the minimized window