I think the `raise` was required to fail the spec with the specified error message.  Without it, the error is just a generic connection failed or something.