Fix hanging in PLTerm test.