Last South Koreans leave North Korean factory