Properly close output buffers.

If the server is not explicitly configured with output_buffering off the output_buffer will be started by php and the starting level will be 1. This buffer cannot be cleaned, value stays 1 and we end up in a loop.