[FOLD] Tidy socketwrapper