Disconnect a Remote Desktop Session
On the remote Windows workstation or server, the Windows Card Removal policy is configured for "Disconnect if a remote Terminal Services session". For further information, see Microsoft Windows Policies - Card Removal.
To disconnect from the Remote Desktop session, remove your smart card from the smart card reader.
The session remains open on the remote computer. You will find the session in the same state the next time you log on, that is, the same applications will remain open in the state they were in when you locked the session.