Support ActiveRecord::Rollback

Fixed bug where the after_transaction block got executed even if you rolled back the transaction by raising ActiveRecord::Rollback.