Return exit status of child process, rather than always returning