valid_runner.py: handle InvalidAMIID.NotFound and AuthFailure codes