private static bool CatchSocketException(SocketException socketIssue) { socketIssue.HandleException(); //If a failure occurs to connect to the remote server make sure to log to the event viewer return(true); }