Fix crashes in FireScrollEnd

Properly terminate CopyPasteManager.