Clear buffers before inserting shell output