Handling node disconnection