You should always end the terminal session with the command
logout
or some other operation with the same effect.