Reset after ethernet cable unplugged?

I have a TCP server running on a W5500 io module.

If we unplug the ethernet cable during a connection, the PC can not re-connect to the W5500 until a power cycle.

I have found wizphy_getphylink() to detect link status. Is there some extra code I need to add to recover from a cable disconnect?

My code is based on the http server example.

Thank you.