recover from archive errors, and add the ability to mark these tasks as failed.