Move the stop condition handler from target storage to link storage.
Now in frontier, each domain has a limit number of pages.