There is no concept of exiting an application on the iPhone. The only action that should close the app is to press the Home button on the phone and developers don't have access to it.
According to Apple, your application shouldn't terminate by itself. Please check this link
source
to share