Typo thread:
… the application will we left in a consistent, functional state …
s/we/be/
In the code, switch is misspelled as swich.
Typo thread:
s/we/be/
In the code, switch is misspelled as swich.