error writing "sock563815b40a70": socket is not connected