I start a BackgroundTaskWithExpirationHandler when the application waken up by significant change location update. is it important to close the task as below:
if (bgTask != UIBackgroundTaskInvalid)
{
[[UIApplication sharedApplication] endBackgroundTask:bgTask];
bgTask = UIBackgroundTaskInvalid;
}
what would happen if I didn't close the task.