Fix classad units tests to not go into an infinite loop on an IO error.