connect失败关闭socket