public void Dispose() { try { _server.Dispose(); if (_acceptedSocket != null) _acceptedSocket.Dispose(); } catch (Exception) { } } }