Fixed a performance bug where output streams / outputwriters were not properly closed. This affected the performance of rendering raw Strings and raw byte arrays.