I don’t think that would work, unfortunately. User-customizations such as this won’t kick in until the language runtime is set up and ready to go. We would have to have a different mechanism to diagnose the problem.
How frequent (in percentage) are the failures?