error writing "sock5640be952a70": socket is not connected