presto-main/src/main/java/io/prestosql/execution/buffer/PartitionedOutputBuffer.java/PartitionedOutputBuffer/destroy
class PartitionedOutputBuffer:    @Override
    public void destroy()
    {
        // ignore destroy if the buffer already in a terminal state.
        if (state.setIf(FINISHED, oldState -> !oldState.isTerminal())) {
            partitions.forEach(ClientBuffer::destroy);
            memoryManager.setNoBlockOnFull();
            forceFreeMemory();
        }
    }