rework restarting NetworkManager