Use g_hash_table_iter to alow cancel while clean removed files.