catch copy_local_to_storage errors and rasi PublicStoreFail, saving the keyname