Merge "Closing cursor in finalizer to avoid GREF and fd leak in acore"