protected override void OnException(ITransport sender, Exception command)
{
if(failed.CompareAndSet(false, true) && !this.disposing)
{
Tracer.Debug("Exception received in the Inactivity Monitor: " + command.ToString());
StopMonitorThreads();
base.OnException(sender, command);
}
}