Isn't `applicationDidEnterBackground` invoked before `applicationWillTerminate`?