@mdboom - I'm not sure a contextmanager makes sense, since it requires explicitly using `with:` whenever you want the internet off, while the purpose of this change is to catch situations where someone left the 'net on when they shouldn't have.

The only place I can see putting a context manager is on the `guard` function, but there's no need for it there since it has to be made a `socket` attribute anyway.