Merge stdout and stderr, keep reading output for a while.