ref #15. Fix a potential race condition in the NetworkManager