interactive autograder: better failure checks (#2165) - Prod

Production version of PR #2179