add try catch around each record