move early terminate check to end of pass
Merge pull request #270 from petricek/early_terminate_fix

bugfix: --early_terminate