Safely save state when app is killed by OS
When the device is under memory pressure (and some other reasons), Android kills random apps. Tor Browser uses a significant amount of resources, so it is killed relatively often. This has the consequence of users losing all of their open tabs, arbitrarily.
Android gives an app an opportunity to save its state immediately before it is killed. We should take advantage of this and somehow-safely save the current state