Close the socket. This function does not throw exceptions even if
the underlying system call returns errors.
If multiple threads use the same socket and one uses fdSocket
and
the other use close
, unexpected behavior may happen.
For more information, please refer to the documentation of fdSocket
.