internal static void Dispose(this Socket socket) { if (socket == null) throw new NullReferenceException(); socket.Close(); }