I have been looking and searching for a response to this and have actually found a workaround for this X11 issue.  what needs to be done is to tell the X11 app to close when a session has been succesfully closed, this can be done with the following:  open a terminal window (user must have admin rights to the local machine) enter the following. defaults write org.x.X11 wm_auto_quit -bool true  this will casue the X11 window to close upon a key stroke or mouse movement once the user has logged off.  if you need to revert back simply enter the following  defaults write org.x.X11 wm_auto_quit -bool false   this will bring you back to manually closing the X11 window
When using the Mac AppPortal client is there a way to get the X11 application to close automatically when exiting the hosted Application or Desktop? Or is the only solution to manually close the X11 application for the hosted Application to launch again?
Is there a way to Auto Close the Mac X11 Application when exiting a hosted 
desktop?