Minor changes to tx_callback

Finalize the error procedure that was accidentally deleted.