return exit code to OS on test failure