Return first process's exit code

Right now the process's return code is ignored.