error writing "sock558228539a70": socket is not connected