title: "Extension context invalidated" when calling chrome.storage.sync.set
body: <p>I get this error randomly while testing an extension I have loaded unpacked.</p>
  <p>I call <code>chrome.storage.sync.set</code> for setting users' options. After many calls of the function at some point the error takes place and then saving options stops working.</p>
  <p>What would the solution be for this problem that seems to happen randomly?</p>