Use the `kernel.terminate` event to add a page to the search index