Unregister and unpublish when network conditions change, before restarting

Ignore-this: 9863ce00a5ef1e6810d9780fe407e258

darcs-hash:20140807154617-56b4d-bdcaaa3f63bdc8c90c3d68c747c898d7af38bf80
Remove unneeded check

Ignore-this: db310d096b8ebf756b18ccfe7aafb2d

darcs-hash:20140807154707-56b4d-7c75d4c3de855bead1207cef479f74d0d7e91740