error writing "sock1e1fe00": socket is not connected