(iOS 4.x) Cleaning out the NSUserDefaults when app quits?
That method will still be sent if iOS ever decides to quit the app. You should probably put the same cleanup code in applicationWillResignActive: if you want it to clean up when moving to the background as well.