ExitSession
This command exits the current device session completely, the same as entering ‘Q’ at the original login screen. The VBA event where this is called must exit before this statement is carried out. Therefore it is always best to use and Exit Sub statement immediately after this command.
Group: Application-Based Extension
Syntax: App.ExitSession
See also: App.Signout.