public static void beginQuit() {
		EnvironmentFrame[] frames = Universe.frames();
		for (int i = 0; i < frames.length; i++)
			if (!frames[i].close())
				return;
		
		//modified by Moti Ben-Ari
		if (gui.Main.getDontQuit())
			NewAction.closeNew();
		else
			System.exit(0);
		
	}