Let's not eat up errors in shall_restore_state(), but in the consumers instead, just for the sake of keeping the library calls generic.