Update node reconnection logic