Computer Configuration > Administrative Templates > Citrix Components > Citrix Workspace > Security preferences
Machine
HKLM\Software\Policies\Citrix\Dazzle
Log off user on session disconnect. When enabled, users are automatically logged off from Citrix Workspace app when they disconnect from their session. In case of multiple sessions, after all the sessions disconnect, user should be logged off.