I think this should be less generic. IOError makes sense for the Registry (when a file does not exist for instance), but most errors should not be handled in the same way.