Added exitCode option to allow execute of programs which don't return a
sensible error code