[FIX] enabled header/footer output and flush in d’tor