catch and handle errors that occur when committing a transaction with bunny