archiver: handle error cases.