Tutorial: system.exit

system.exit

Exits the Runtime.

Example

fin.desktop.System.exit(function () {
    console.log("successful");
},function (err) {
    console.log("failure: " + err);
});