Socket open/close (cont.)