client throws exc if connection failed