Improve exception handling for translations.