public synchronized List<OpenTrace> clearAll() {
			List<OpenTrace> all = List.copyOf(byId.values());
			byId.clear();
			byTrace.clear();
			for (OpenTrace open : all) {
				plugin.withdrawTarget(open.target);
			}
			return all;
		}
Call only for cleanup. Cannot be re-used after this

@return the open traces that were removed
Ghidra/Debug/Debugger-rmi-trace/src/main/java/ghidra/app/plugin/core/debug/service/tracermi/TraceRmiHandler.java