* commit 'cb8427538dfdc5eae941e377b11bfd11a95fc5a5': Closing cursor in finalizer to avoid GREF and fd leak in acore