private void awaitResponse() {
        synchronized(this) {
            while (resp.get() == null && !closeConnection) {
                try {
                    wait();
                } catch (InterruptedException intx) {
                    // Ignore
                }
            }
        }
    }