@Override
                    public void close() {
                        collectThread.getVar().interrupt();
                    }
This can be manually called by the calling code to force release of
resources at the earliest opportunity.
jphp-runtime/src/php/runtime/util/generator/ThreadedYieldAdapter.java