Try to prevent some conflicts when parsing Exceptions.
Improve logging when exception parsing fails