handle connect err