adding a max number of queue otems in the failed queue.  if the max is reached then we start logging to an external logger