When you finish your session, you need to log out of the system to ensure that nobody else accesses your files while masquerading as you.
To log out:
logout
That's it! Just type logout, and the system will clean up everything and break the connection, and the SSH program might very well just vanish completely.
Tip
On some Unix systems, you can type exit or quit instead of logout, or press on your keyboard.