Japan closed its borders 3 weeks before North Korea. Several other countries too. I suppose one difference between North Korea and Japan is Japan allowed residents to return, however that's unlikely to be an issue for North Korea, given residents aren't allowed to leave in the first place.