Merge "Log error message if CloseNativeLibrary fails"