maintain headers sent as the last resort even in buffered mode