adding socket restart on broken pipe in perfmetrics