error writing "sock557c91794b20": socket is not connected