When core critically fails to load a lib, print all the exception.
Merge pull request #2280 from matham/core-err

When core critically fails to load a lib, print all the exceptions.