Cover socket operations with try/catch, try to reopen socket if necessary.
Cover socket operations with try/catch, try to reopen socket if necessary.