Development code for Sockets provider

- This is an incremental devel code for Sockets provider.

probably return -errno if close fails