error writing "sock565357767a70": socket is not connected