error writing "sock564339925b20": socket is not connected