Rescue socketerrors when trying to index elasticsearch models too