Return with error if rc cannot connect to server