This plugin adds the ability to close a Windows Phone 8 app programatically. It was build because a WP8 app was rejected because it didn't close the app with custom back button behavior.
To install this plugin, follow the Command-line Interface Guide.
If you are not using the Cordova Command-line Interface, follow Using Plugman to Manage Plugins.
The usage is extremely simple: