spec: exit early on connection error