private Exception CreateException(SocketError socketError) { try { throw new SocketException((int)socketError); } catch (Exception ex) { return ex; } }