close

Closes the currently established connection. Must be called before another connection can be established.

The connection is released even if closing the underlying reader fails, so a failed close never leaves this Connector permanently blocked in open.

Return

Result.success if the reader closed cleanly (or was already closed), or Result.failure holding the java.io.IOException it raised