error writing "sock556513ec8a70": socket is not connected