Improve archiver shutdown detection