Change stateinfo names so switcher knows what is what. Ensure state file is unique on rebuild. Add KeyboardInterrupt handler for shutting things down properly.