private Runnable syncRun(Runnable r) {
        return () -> {
            synchronized (RealtimeTable.this) {
                r.run();
            }
        };
    }
Close this realtime table. Job is done.
This method only called before process exit.
indexr-segment/src/main/java/io/indexr/segment/rt/RealtimeTable.java