diff --git a/modules/library/dnd/plugins/dndck4/plugin.js b/modules/library/dnd/plugins/dndck4/plugin.js
index 3b1de98..d3b8d05 100644
--- a/modules/library/dnd/plugins/dndck4/plugin.js
+++ b/modules/library/dnd/plugins/dndck4/plugin.js
@@ -596,7 +596,7 @@ Drupal.dndck4 = {
         range.moveToElementEditablePosition(editable, true);
       }
       Drupal.dndck4.insertWidget(widget, editor, range);
-      cleanupDrag();
+      cleanupDrag(true);
     }));
 
     // Prevent paste, so the new clipboard plugin will not double insert the Atom.
@@ -617,13 +617,18 @@ Drupal.dndck4 = {
 //        console.log('dragleave');
 //      }));
 
-    function cleanupDrag() {
+    function cleanupDrag(dropped) {
       // Stop observing events.
       eventBuffer.reset();
       var l;
       while (l = listeners.pop()) {
         l.removeListener();
       }
+      // Clean-up unused widget
+      if (!dropped) {
+        widget.repository._.draggedWidget = null;
+        widget.repository.destroy(widget, true);
+      }
       // Clean-up all remaining lines.
       liner.hideVisible();
       // Clean-up custom cursor for editable.
