Fix potentially late cutoff when unable to solve puzzle.