This would also be a good opportunity for a context manager, since it is tweaking global state, after all, i.e.:

```
with internet_off():
    # ...
```