Added check fror error code in connAck