Close the file that contains the Group.
All groups which are in the file will be closed and removed from the _instances dictionaries. Tempfiles, if they exist, will be removed