Implementing failed transaction recovery.