Handle connection refused more gracefully