Clean up output file