public void StopEDDNListening() { try { foreach (var recieverKVP in m_Reciever) recieverKVP.Value.Dispose(); m_Reciever.Clear(); } catch (Exception ex) { throw new Exception("Error while stopping the EDDN-Listener", ex); } }