I can't think of anything except adding a counter. On practice I noticed that it was never called more than twice.
So setting a limit to 10 should be enough.