Closing a Citrix Virtual connection can be impinged or blocked by running Automox Agent processes that do not close automatically on disconnect.
Symptoms
Citrix VDI sessions do not close, leaving connections running and potentially causing Sessions to build up. This can cause increased resource utilization to maintain each session if left unattended.
Steps to resolution
The LogoffCheckSysModules registry setting is used by Citrix XenApp to know which processes are non-essential. In turn, XenApp can disregard and terminate these processes in order to close the user's session. The values assigned to this setting is a comma-separated list of process names for which, if they are all that are left, XenApp does not need to hold the user's session open any longer.
The following registry key will need to be updated:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI
"LogoffCheckSysModules"="process1.exe,process2.exe"
The necessary processes to be added:
amagent.exe, amagent-ui.exe, msedgewebview2.exe
This should ensure all Automox processes are closed when logging off.