If an error occurs in e.g. a google api call, state is not reset and the program enters an inconsistent state.