Better handling of bad transactions.