Flush on write

Makes sure the timing is as tight as can, especially when writing into a
pipe.