Fix rollbacks for exceptions other than ActiveRecord::Rollback, ActiveRecord::RecordInvalid

ActiveRecord will rollback transactions for _any_ kind of exception raised in a transaction block, not only these two.

Came across this because I could not get `after_rollback` to work correctly in an autotest.