Cleans up output files