I have a little problem with saving my state to localsettings. Everything is ok except the situation when someone close my application using `alt` + `f4` and open it before 10 seconds elapsed(after 10 seconds application is in state suspending and data is saved). (Technology xaml/c#)

I save my data in event `OnSuspending`.

I load my data in event `OnLaunched` like this:

```
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated ||
args.PreviousExecutionState == ApplicationExecutionState.ClosedByUser)
{
  // save data
}

```

How to handle this situation ? I know i can save my state every time it is changed but i think it is not good idea in my application.
Thanks for help !