error writing "sock564cb2b47a70": socket is not connected