Shell: Handling of link disconnection