check that r is not None
raise EC2ResponseError if not wait