pui.onshutdown (Genie)
The pui.onshutdown event, if defined, fires when a Genie session is being ended.
Example:
pui.onshutdown = function(param) {
Â
if (param.exception == "CPF87D7")
// Cannot select device, do something.
else if (param.exception == "PUI0034")
// Macro processing error, do something else.
Â
}