Fix cleanup for bookmarklet nodes and listeners.