added to invoke `priorityEnd` event.