PKHeX doesn't exit automatically when exporting a save file. If there's an error log, that would be helpful, otherwise you can try saving elsewhere and manually moving the file. I don't think it's an issue with PKHeX.
That's also not the latest version of PKHeX, so...