snap: handle snapshot file error robustly