Fixed a bug in experiment where we weren't closing files.