exit node logic