In fact, I'd re-write as:

    MongoClient client = client();
    try {
        return client.getServerAddressList().get(0);
    } finally {
        client.close();
    }