Flush output so logging is actually useful