Handled the error of calling transactional activity.
Returning actual error so that transaction can be commit or rollback.