To close any open Telnet/iX session and exit the Telnet/iX Client, use the QUIT command:
telnet> QUIT
: