Fix #255. Bail after 10 recurses.