G400 Microframework socket binding

is there any way to free a bound client socket resource after a critical event.
for example if there is a network error and you got a network dhcp lease.
in my case the client socket is not fully unbound. sometimes there are critical exceptions!