title: Can I proactively close my iOS app?
body: <p>There are some rare data-corruption circumstances where rather than attempt a recovery in the same session, I'd like to perform some fixes and then shutdown the app so the next launch will be safe.</p>
  
  <p>Short of hard crashing the app with something dumb like <code>*(unsigned int *)0 = 0xDEADBEEF</code>, I can't find an API in Cocoa that causes a graceful shutdown.</p>
  
  <p>UPDATE: Found this documentation on the subject, that essentially confirms suspicion and points to <code>exit</code> as a last-ditch option:</p>
  
  <p><a href="http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html" rel="nofollow noreferrer">http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html</a></p>