title: Accessing IsolatedStorageSettings from backgroundAgent and main App - how to ensure bgAgent released resources before procceeding
body: <p>I am using a background agent (SchedulerTaskAgent) that updates some keys in my app's IsolatedStorageSettings. Everything good up to here.</p>
  
  <p>When my app launches, it first removes the bgagent.</p>
  
  <p>There is one case where my main app launches while the bgagent is running, so when my main app removes the bgagent and then tries to get a handle for IsolatedStorageSettings. There are 3 scenarios after this:
  i) handle is returned and everything is ok 
  ii) handle is returned but no key-values exist in it, it's like nothing is there (but there are data)
  iii) exception because it is still used by another thread</p>
  
  <p>I can deal with options 1 and 3, but not with the 2nd one. Anyone knows why this happens?
  When I call .Remove for my agent, i guess it needs some time to cancel it and remove it.</p>
  
  <p>How can I ensure that my app starts its job after the bgagent was stopped and resources completely released?</p>
  
  <p>Thanx</p>