It's unclear that the foreign nation would have personal jurisdiction over the spouse, and thus may not be able to do anything more than grant the divorce.