Bug fix: close: discard stale cursor.