Implement support for delegating errors to user

* API change: 'litestore_open'.