handle network.interface being None when network is disconnected