Better error handling in Wired:Socket