Refined the code to get the caller of a library load failure.