Disconnects from the server.
public func disconnect() throws -> Void
Call this method to close the connection to the server.