You can disconnect from a remote desktop without logging off, so that applications remain open on the remote desktop. You can also disconnect from a remote application so that the remote application remains open.
When you are connected to the remote desktop or application, you can disconnect by tapping the Disconnect icon in the Unity Touch sidebar.
A Horizon administrator can configure your desktop to automatically log off when disconnected. In that case, any open programs in your desktop are stopped.