rlogind, telnet, telnetd: Modify exit status.

As a side effect, a race condition is now avoided,
while `rlogind' is tearing down pseudo-terminal pairs.