IN-249 Improve handling of serialization errors

@dominicm 
It would be good to move this code into a method... maybe somethign like :

def update_non_delivery_stats(message, e = nil)
  args = [messsage]
  args << e.class.name.sub(/^.*::/, "") if e
  @non_delivery_stats.update(*args)
end