error writing "sock558492268b20": socket is not connected