exception handling for storage.rb