Make sure last line is flushed when generating compressed data