Basic network disconnect handling

The state must be disconnected, right? It shouldn't be possible for it to be `Connected` on the `onDisconnected` handler.