Add outputBufferingActive property to clean up output buffer automatically