private void shutdown() {
		write("Server Shutdown!\n");
		
		changeMode(GameMode.MAINTENANCE); // prevent any new connections
		
		write("Entering " + mode.toString() + " Mode.");

		// disconnect any connected clients
		for (final Client client1 : s.getClients()) {
			init_disconn(client1, false);
		}

		System.out.print("Stopping main game... ");
		
		// indicate that the MUD server is no longer running, should cause the main loop to exit
		running = false;
		
		if ( true ) {
			//threads.get("command_exec").st
			//cmdExec.
		}
		
		System.out.println("Done");

		// stop the server (the network server, the part handling sockets)
		System.out.print("Stopping server... ");
		
		s.stopRunning();
		
		System.out.println("Done");

		// run the backup (run before closing logs so any backup problems get logged)
		System.out.print("Running backup... ");
		
		// TODO review backup
		//backup("");
		
		System.out.println("Done");

		// close the logs (closes the file object and saves the data to a file)
		if ( logging ) {
			System.out.print("Closing logs... ");
			
			logger.stop(); // close logs
			
			System.out.println("Done");
		}
		else {
			System.out.println("Logging not enabled.");
		}
		
		System.out.println("Exiting...");

		System.exit(0);
	}