Marking connection dead in readline().

Also fixing a docstring test.