Listen for network change events.