catch errors during undo
remove console log
add "transactions" for deletion