public void blockUntilShutdown() throws InterruptedException {
        if (server != null) {
            server.awaitTermination();
        }
    }
Await termination on the main thread since the grpc library uses daemon threads.
tika-grpc/src/main/java/org/apache/tika/pipes/grpc/TikaGrpcServer.java