avoid entering enter a loop by allowing code to fail out after second failed compile attempt