Fixed a bug where I forgot to raise an exception if dumps failed.
Better handling of dumps and loads errors.