Always save settings when tray window is closed