Give up after N steps.