add early return to connection error

fixes https://jira.zenoss.com/browse/ZEN-14481