Earlier quoted context omitted.
One problem I have with this is that its a massive security hole. Where does the output get stored? If its in an encrypted file, okay .. but if not: deal breaker.
You can disable it system wide. But it also works on a per-app basis: if you don't want the UI state restored, then just quit the app with Cmd+Option+Q (instead of the regular Cmd+Q) and OS X will not save the application state.
THANKS for letting us know about cmd-opt-q! I'll have to start using that all the time since it does seem like a potential security hole.