flush stream in output worker