private void closeAllExchanges() {
        assertLocked();

        clearEmptyRequest();

        for(HTTPExchange exch: exchanges)
            exch.getHTTPResponse().abort();

        exchanges.clear();
        notFull.signalAll();
    }