protected void negotiate() {
		RootMessage req = receive();
		RootMessage rep = dispatchNegotiate.handle(req);
		if (req == null) {
			throw new TraceRmiError("Could not receive negotiation request");
		}
		if (!send(rep)) {
			throw new TraceRmiError("Could not respond during negotiation");
		}
	}
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