Add a log when unsetting NODE_NETWORK.
Represent block or undo with a enum to improve redability.