Flush stream after each message