error writing "sock558514ce8b20": socket is not connected