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