I'm worried that we will have the same issue we had before... There is no guarantee that stdout is flushed before the process exits.

I'll try this out on Windows.