public void flushAll() throws Throwable {
        while (popOutputBuffer() != null) ;
        defaultBuffer.close();
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java