public static void Shutdown() { while (ActiveProtocols.Count > 0) { EnqueueForDelete(ActiveProtocols[0]); } }