apache/incubator-cordova-ios — pull request #24 by walm (2012-07-03 13:05:59+00:00)
Title: End background task for LocalStorage backup if iOS terminate app before jobb is completed

I've got __EXEC_BAD_ACCESS__ sometimes on

[self backup:nil withDict:nil];
[[UIApplication sharedApplication] endBackgroundTask: backgroundTaskID];

so after adding _[[UIApplication sharedApplication] endBackgroundTask_ in expired handler, it all worked fine.