APP.Exit
status = APP.Exit( bSaveChanged AS INTEGER ) AS INTEGER
Terminates the application. If bSaveChanges is set to TRUE (Default), the app will prompt to save any modified files before exiting.