Handle some weird failure cases if tests fail.