catch errors while restoring cache