Move wp_parser_ending_import action to before counting is turned back on and caches are cleared.