rollback transaction when sending an error