Why do they need to visit the consulate? They walked across to get in, now they can just walk back.
They've probably been here so long they no longer have papers to get back into their own country.