Fail Monte Carlo run if too many iterations fail due to increasing value

Use exception for iteration failure instead of magic return value