Add logic to catch exception on socket read and retry, (broken pipe occurs about 10% of the time).