Don't advance to the next unit if there are critical checks pending

Fixes #53.