C#
VB
C++
Logs out of the MedicalWebViewer and closes the browser.
In order for CloseApplication to work in Firefox, closing windows from javascript must be enabled in the browser: about:config -> dom.allow_scripts_to_close_windows = true;
For an example, refer to InitApplication.