close report file after writing

If the file is not closed (which File.open doesn't do automatically if it not passed a block) and the xcpretty ruby library is used from within another process (not the command line, where the file is closed after the xcpretty process exits), then you have an open file with pending writes that cannot be used.