handled exit case for telnet