Force flush at the end of emit_stream