close grooveFile instances at the correct time. closes #200