Prevent running forever on long unencodeable rests