function for closing all pytables files without printing