error writing "sock557721ed2b20": socket is not connected