chrome.socket: More error handling, udp read test fix