presto-base-jdbc/src/main/java/io/prestosql/plugin/jdbc/JdbcRecordCursor.java/JdbcRecordCursor/close
class JdbcRecordCursor:    @SuppressWarnings("UnusedDeclaration")
    @Override
    public void close()
    {
        if (closed) {
            return;
        }
        closed = true;

        // use try with resources to close everything properly
        try (Connection connection = this.connection;
                Statement statement = this.statement;
                ResultSet resultSet = this.resultSet) {
            if (connection != null) {
                jdbcClient.abortReadConnection(connection);
            }
        }
        catch (SQLException | RuntimeException e) {
            // ignore exception from close
        }
    }