Make autotag/retrain handle errors without barfing