void ExitFlush(List <Exception> errors, bool timedOut)
 {
     if (errors.Count > 0)
     {
         throw InstrumentationFailure.FlushErrors(errors);
     }
     if (timedOut)
     {
         throw InstrumentationFailure.FlushTimedOut();
     }
 }
        protected override void RemoveItem(int index)
        {
            LoggerBuilder item = this[index];

            if (item.Name == "root")
            {
                throw InstrumentationFailure.CannotRemoveRoot();
            }

            base.RemoveItem(index);
        }