Make rust {test, run} exit with appropriate code.

Scripts need to know if the tests pass or the program ran correctly.