completed insert error handler