Fix for test runner to capture a failing exit code.