private static void CleanUnusedListener() { if(listeners != null && listeners.Count > 0) { foreach (var listener in listeners) listener.Stop(); listeners.Clear(); } }