Save app state on exit and restore on load (use Json.NET instead of FsPickler)