abort pi calculation on too many passes