Once MC will be NetworkManager aware (bug #38978) it would be ace to disconnect all accounts when NM is about to change network. That would save us TCP timeouts and so potential messages lost.
I don't know if NM provides such signal atm but that would be a really useful API to have.
See also bug #28370 which is about a similar signal from UPower.
(In reply to comment #0)
> I don't know if NM provides such signal atm but that would be a really useful
> API to have.
I opened https://bugzilla.gnome.org/show_bug.cgi?id=672979 suggesting to add such signal.
Making this depend on the bug to behave better when an interface goes down unexpectedly, because that will improve the behaviour when we could have some warning, too.