Allow H5MD_File to be used as a context manager