Catch and log general exceptions from capi library
Merge pull request #7522 from guardian/log-unknown-capi-exceptions

Catch and log general exceptions from capi library