Mark for transaction rollback after APIException occurs.