"Close the connection if `node.conn` is _not_ nil and set it to nil after."  This code is correct.