Removes the connection from the event loop, closing it if necessary, and cleans up the underlying resources.
See Implementation
Removes the connection from the event loop, closing it if necessary, and cleans up the underlying resources.