This relates to #BF-15843 – `hostsToScan` is non-empty when calling `ScanState::enqueAllUntriedHosts` (here).
Potential fix is to ensure `` clears `hostsToScan` before returning. This could not be the case during a shutdown event (here).