/// <summary>
        /// Resets the UDPServer. Means unbind, and remove the UDPChannels if you specify the parameter as true</summary>
        /// <param name='removeChannels'></param>
        public void Close(bool removeChannels = true)
        {
            _started = false;
            int max = _peers.Count;

            for (int i = 0; i < max; i++)
            {
                _peers[i].Close();
            }
            _peers = new List <UDPPeer>();
            _udpManager._udpServerPeers = new List <UDPPeer>();
            _udpManager._CloseHiddenChannels();
            _udpManager.Close(removeChannels);
        }