You should explicitly log out whenever you have finished using CPanel, as this tells the web server that you have finished that session. If you do not log out, the server automatically closes your session after a set period of time, but there is a small chance that a hacker could use that open connection.
To log out:
Click on the Logout button. This is located on the opening page of CPanel in both the default and iconic themes.