correct handling of errors in transactions for mri