private void exit() {
stopAutoUpdate();
ClientConfiguration conf = ClientConfiguration.getDefault();
conf.storeAutoUpdateFramePrefs(autoUpdateFrame);
conf.cleanup();
if (Platform.isWindows() && (trayIcon != null)) {
trayIcon.freeIcon();
WindowsTrayIcon.cleanUp();
}
System.exit(ExitCodes.OK);