To end an SOL session, press Esc followed by an open parenthesis (press Shift and 9 at the same time):
Esc (
When the SOL session ends, the command-line interface returns to the persistent command target that was in effect before the SOL session. If you want to end the Telnet or SSH command-line session, type exit.