error writing "sock561359745a70": socket is not connected