Added small optimization

There's no need to descend further once you find a connection
that does not need to be reaped since this is a LIFO.