Fixed bug with stopping tests at bad_exit_code.