Close a connection. If there is queued data waiting to be sent, wait until it is sent before disconnecting.
See Implementation
Close a connection. If there is queued data waiting to be sent, wait until it is sent before disconnecting.