public void Close()
{
if (m_channel != null)
{
lock (m_lock)
{
if (m_channel != null)
{
m_channel.Close(1000);
m_channel = null;
}
}
}
}