Managing scanner errors