Add hide-on-close option
Save/Restore state upon shutdown/startup