presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/util/SynchronizedResultIterator.java/SynchronizedResultIterator/close
class SynchronizedResultIterator:    @Override
    public synchronized void close()
    {
        if (!closed) {
            closed = true;
            iterator.close();
        }
    }