iocore: save an exception before exit from `get()`

So `get()` will raise proper exceptions like `permission denied` etc.

+ tests