default RootMessage handle(RootMessage req) {
			String desc = toString(req);
			if (desc != null) {
				TimedMsg.debug(this, "HANDLING: " + desc);
			}
			RootMessage.Builder rep = RootMessage.newBuilder();
			try {
				rep = dispatch(req, rep);
				return rep == null ? null : rep.build();
			}
			catch (Throwable e) {
				Msg.error(this, "Exception caused by back end", e);
				return rep.setError(ReplyError.newBuilder()
						.setMessage(exceptionMessage(e)))
						.build();
			}
		}
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