title: Whats the event when an app exits in Cordova?
body: <p>I am writing an iOS app using Apache Cordova. There is onDeviceReady event that lets me know when I can start calling my code.</p>
  
  <p>Is there an event that I can handle that tells me that the application is exiting. Not resume or pause because those are fired when an application goes to the background and then returns to the foreground.</p>
  
  <p>I want to do some clean up work when an app exits.</p>
  
  <p>Is there an event for this? Which one is it?</p>