Fix: output PROCESS COMPLETE only when stdout and stderr have finished