Added an exceptions for invalid and aborted transactions.