Yes, never trust features like these for anything important, we're just not in that era of computing where losing user state is a cardinal sin.
Had the same issue.
Though you could use a shortcut to quit the editor instead of closing windows
Though you could use a shortcut to quit the editor instead of closing windows