Refactor the DebitCredit methods (a lot). Catch transaction errors in the front-end.