Handle DB commit errors