Close output stream so that the file actually gets written to disk.