title: call exit(0) in iphone app
body: <p>At some point in my application I have done this <code>exit(0)</code> which crashes my app. But I haven't figured out what method gets called when this executes.</p>
  
  <p>I've put messages in:</p>
  
  <pre><code>(void)applicationWillTerminate:(UIApplication *)application
  (void)applicationDidEnterBackground:(UIApplication *)application
  </code></pre>
  
  <p>But none of this seem to get called! Any idea about what method is called when <code>exit(0)</code> is done?</p>