Use the exit command to terminate:
Your current device/terminal server session
A temporary root session. If you are in a root session started with the admin command, exit returns you to a regular session. Anyone can execute the exit command.
Enter the exit command as shown below:
exit
In this example, the exit command ends the current session.
exit