Metadata cursor cleanup.