improving robustness for retrieving output written by started process
when process quits quickly