Fixing a bug where process was not exiting with failure exit code

Fix for https://github.com/azer/prova/issues/40