Correctly handle bad exit codes from wizardry.