Removing the selection listener when editor destroyed.