cleanup ag buffers