Use proper exit code for connection error