void CloseSocket () { if (sock == null) return; try { sock.Close (); } catch { } finally { sock = null; } }