Scanner API state does not reset

Let’s do a little trip down the memory lane, shall we?