I use this to close my AIR apps from the menu:
If this post answers your question or helps, please mark it as such.
Flex Development and Support Services
ReferenceError: Can't find variable: NativeApplication
Ok, I did a little more digging and found that the following works: