This can cause problems.
Imagine the code is written as to keep trying to reconnect or write logs every time it fails to connect. It's probably more convinient to remove the code trying to access the network than to inspect what this code does in case it is unable to connect to the network (and possibly modify it).