Not great, to have a control-flow stopper buried in a function. A proper exit handling system like in #82 would be much preferred, but as noted there, that's best done in tandem with #118.