Improve the behavior of handling errors when loading a language.