catch exception if indexing record failed