private void ReleaseSocketRelatedResource() { try { if (_listener != null) { _listener.Dispose(); } } catch { } _listener = null; try { if (_httpThread != null) { _httpThread.Abort(); } } catch { } _httpThread = null; }