Feature collaboration: Local storage provider options

Super low key. I added a listener on the close event to the app domain that sets a boolean, and then i remember to check that, inside all functions. ( in the old days you would get a ton of errors about not being able to to update the database while closing down. And all of those update was triggered by the UI changing doing closing, so all non important updates )