Skip the redundant enqueueing of closed nodes.