private void OnWPCommand(IncomingMessage msg, bool fReply)
 {
     switch (msg.Header.m_cmd)
     {
     case Commands.c_Monitor_ProgramExit:
         if (m_session != null)
         {
             m_session.OnDisconnect += SoftDisconnectDone;
             m_session.Disconnect();
         }
         break;
     }
 }