Flush on write

Ensures that all output is received immediately if it's being piped.