catch the right exception while prefetching