The wrapper now deals smoothly with the wrapped process terminating with an error, although some shared error codes would improve things further.