don't try to cleanup read-only buffers