private void closeTab(String actionCommand) {
		String[] parseInputAC = actionCommand.split(":");
		if(parseInputAC == null || parseInputAC.length != 2) {
			System.err.println("Error closing tab");
			return;
		}
		NetworkSharedUser nsu = Users.getUserByName(parseInputAC[0]);
		// Nsu will be null if the user disconnected.
		if(nsu != null) {
			if(JOptionPane.showConfirmDialog(null, "Are you sure you want to:\nClose private chat with "
					+ nsu.getName() + "?", "Close Chat?", JOptionPane.OK_CANCEL_OPTION) != JOptionPane.OK_OPTION) {
				return;
			}
			privateChats.remove(nsu.getId());
		}
		
		openChatsPane.remove(Integer.parseInt(parseInputAC[1]));
	}