dealing with pyner socket error