Added try-catch around storing stats so it doesn't cause messages to requeue