Handle scanner error