protected ReplyCreateTrace handleCreateTrace(RequestCreateTrace req)
			throws InvalidNameException, IOException, CancelledException {
		DomainFolder traces = getOrCreateNewTracesFolder();
		List<String> path = sanitizePath(req.getPath().getPath());
		if (path.isEmpty()) {
			throw new IllegalArgumentException("CreateTrace: path (name) cannot be empty");
		}
		DomainFolder folder = createFolders(traces, path.subList(0, path.size() - 1));
		CompilerSpec cs = requireCompilerSpec(req.getLanguage(), req.getCompiler());
		DBTrace trace = new DBTrace(path.get(path.size() - 1), cs, this);
		TraceRmiTarget target = new TraceRmiTarget(plugin.getTool(), this, trace);
		DoId doId = requireAvailableDoId(req.getOid());
		openTraces.put(new OpenTrace(doId, trace, target));
		createDeconflictedFile(folder, trace);
		doActivate(null, trace, null);
		return ReplyCreateTrace.getDefaultInstance();
	}
The likely cause of this failing is that the remote end has closed the socket.
However, we don't return, because there may be commands still in the queue, and
we should process them until we reach the end of input. This will ensure clients
that brazenly send a bunch of commands and then disconnect before receiving the
replies will have their commands processed, even if unsuccessfully.
Ghidra/Debug/Debugger-rmi-trace/src/main/java/ghidra/app/plugin/core/debug/service/tracermi/TraceRmiHandler.java