static func connect(to address: SocketPath,
                        type: SocketType,
                        closure: (Connection) throws -> Void) throws {
        try closure(connect(to: address, type: type))
    }