Use watch cursor while is updating the db, and can not close the dialog.
p.s: It's a shame block the dialog, but will prevent many problems!.