Flush stdout after each iteration, so we can tail the log