add catch connect exception