spawn() that returns a duplex stream and emits errors with stderr data on non-zero exit codes