public static void DestroyClient(string name) { INetClient client = GetClient(name); if (client == null) { return; } client.Dispose(); CLIENTS.Remove(name); }