improve errors catching and callback in update-all