NetworkMonitor watches network interfaces and emits events to listeners when interfaces appear or vanish.