adding broken pipe fix , restart socket after that