Example #1
0
 protected override void OnStop()
 {
     try
     {
         Instance.Close();
     }
     catch (IOException ex)
     {
         // Close() may throw an IOException if connection
         // dies - but that's ok (handled by reconnect)
     }
 }