Settings window new closing logic