Enhance the error handling in the translators.