Make sure each file is closed after appending to it.

Fantastic!

Close each file with .close().