This might be clearer as `_shutting_down` or similar, unless there's other use cases.