Fire an event with the link plugin closes so we can rewrite links.