Catch the close in get_local_device_ip_address