destroy editor if not needed case where it wasn't referenced by a pane