Make sure to close socket if usbmuxd_get_device_list() errors out