Proper handling of errors raised by store adapters

Fixes #14