More solid error handling in the run test scripts.