@classmethod
def close(cls):
    """Close file stats file"""
    assert cls._fileobj, cls._fileobj
    if cls.line_buffer:
        cls.write_buffer()
    assert not cls._fileobj.close()
    cls._fileobj = cls._rp = None
