Prevent scanning until popup has gone