handle re-entrant Socket::Close
assert proper apis per protocol, don't assert the result of shutdown, modernize whitespace of SocketPosix.cpp