Use proper error for connection failures. (was reporting DNS error)