Handle memory when there was an error flushing buffer