protected void CloseChannel() { if (m_channel != null) { try { m_channel.Close(); } catch { // ignore errors. } m_channel = null; } }