close the StringIO buffer for concise detail log

close the outputBuffer on each complete_output() call so that the detail log output will only be output for that particular test case instead of appending non-stop