If the Socket is open, shut down both directions and close. Otherwise, it does nothing.
See Implementation
If the Socket is open, shut down both directions and close. Otherwise, it does nothing.