fix: catch any failure to initialize the lib

The lib makes no guarantee to return an instance. This will prevent the client from crashing on failure.