Update switch_state implementation to reset to the start state if an unknown state is found.

Typically this happens when an application is upgraded. We don't want users to get stuck though so it make sense to push them into the start state, I think.