error writing "sock562549affa70": socket is not connected