Flush files in the order they were opened.