add an exception if the transaction is already committed.