add early return to connection error
make fix a bit more succinct
Merge pull request #429 from zenoss/feature/ZEN-14481

add early return to connection error