abc: abc-ip/abc-wifi: close socket on error, better error handling
abc-ip: bind socket to device