Add code and tests to close sockets via SOCK_DESTROY.

Change-Id: I769518d128fcff8035c58fbf3dc868f02fbd6c9d
4 files changed