Better logging when connection fails.