presto-client/src/main/java/io/prestosql/client/StatementClientV1.java/StatementClientV1/close
class StatementClientV1:    @Override
    public void close()
    {
        // If the query is not done, abort the query.
        if (state.compareAndSet(State.RUNNING, State.CLIENT_ABORTED)) {
            URI uri = currentResults.get().getNextUri();
            if (uri != null) {
                httpDelete(uri);
            }
        }
    }