better connection error processing/logging