error writing "sock563350240a70": socket is not connected