Fix handling of failed connectionw when no error is returned