Log error message if CloseNativeLibrary fails

This change adds check for CloseNativeLibrary result and if the
call was unsuccessful logs error message.

Bug: https://issuetracker.google.com/79126103
Test: make
Change-Id: I9280fab7237296c1a06526387aba41f921ffde0f
2 files changed