added broken pipe fix , socket restart after broken pipe , since it seems it is not being resolved after that