@Override
	public void run(TaskMonitor monitor) throws CancelledException {
		monitor = TaskMonitor.dummyIfNull(monitor);
		try {
			hdl = getRepositoryServerHandle(ClientUtil.getUserName(), monitor);
		}
		catch (RemoteException e) {
			exc = e;
			Throwable t = e.getCause();
			if (t instanceof Exception) {
				exc = (Exception) t;
			}
		}
		catch (Exception e) {
			exc = e;
		}
		finally {
			if (monitor.isCancelled()) {
				exc = null;
				throw new CancelledException();
			}
		}
	}
Completes and necessary authentication and obtains a repository handle.
If a connection error occurs, an exception will be stored ({@link #getException()}.
@throws CancelledException if task cancelled
@see ghidra.util.task.Task#run(ghidra.util.task.TaskMonitor)
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/ServerConnectTask.java