added some exception handling around archive upload