private static void quit(Socket socket, BufferedReader input,
			ObjectOutputStream output, Scanner menu, BufferedReader in)
			throws IOException {
		
		ClientData clientData = new ClientData();
		clientData.setName(name);
		clientData.setCloseRequest(true);
		output.writeObject(clientData);
		output.flush();
		
		if (in != null) {
			in.close();
		}
		
		if (menu != null) {
			menu.close();
		}
		
		if (output != null) {
			output.close();
		}
		
		if (input != null) {
			input.close();
		}
		
		if (!socket.isClosed()) {
			socket.close();
		}
		System.exit(0);
	}