avoid NULL exception when the Link fires a disconnected event when the link is deleted.
automatically connects a TCPLink acting as server (like UDP Link)