wrap insert into reject in try catch