* clear connections before removing port, so the connected nodes don't have invalid references. * Try reconnecting the previous ports connections in the new port. Skip reconnecting if the port is dynamic or if the direction has changed.