In a common scenario the link doesn't break. It goes down, your TCP connection fails for timeouts and you start a new communication only when the link is up again.
In the common scenario you don't change the IP number manually, it's changed by DHCP (yes, DHCP is available in ns-3). When the link is up again, your application will start sending data again, eventually after some swearing by the user.
About how to handle this, there's a pending enhancement request to link the linkup / link down at MAC layer with the interface up/down at IP layer, but it's still to be done.
If you want to contribute, enhancements are always welcome.
T.