Catch load/store io exceptions

Fixes #57.