title: Clean IndexedDB when tab is closing
body: <p>I need to keep some data in <code>indexedDB</code> instead on <code>sessionStorage</code> as amount of data is more than 5 MB.</p>
  
  <p>I'm confused about cleanup strategy as in case of page reload or navigation to the other page I need this data to be kept, but if user closes browser tab I'd like to remove it to save place.</p>
  
  <p>How can I do that? Need it to be working at least in Chrome.</p>