async fn monitor_network(subscription: &Subscription<Error>) -> Result<()>
Async task to monitor network disconnections.