@Override
	public void run() {

		while (running) {
			Socket socket = null;
			try {
				socket = serverSocket.accept();
				BlockStreamHandler handler = new BlockStreamHandler(socket);
				handler.start();
			}
			catch (InterruptedIOException e) {
				// ignore
			}
			catch (IOException e) {
				if (running) {
					// only log error if server was not shutdown
					log.error("block stream connection failure", e);
				}
			}
			catch (Throwable t) {
				log.error("severe block stream server failure: ", t);
				if (socket != null) {
					try {
						socket.close();
					}
					catch (IOException e) {
						// ignore
					}
				}
			}
		}
	}
Stop this block stream server instance.
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/stream/BlockStreamServer.java