Deflate & LHA: Return buffer to stream on close