I am doing all this in pol, nothing external locks files etc.
The account and character deletion scripts are fine and have been used for years EXCEPT that I have just added the acctref.Delete(); line to it.
Yep, finally adding pol096 features to the shard
I think it's internal to POL. I'd like to know a bit more about the savegame function and why those 2 error messages come up - but that's all core internal. I'd like to script around it to prevent me from inadvertanly causing ist again. This might well effect other shards too whether you realise it or not. I am not blaming a core bug, just trying to avoid problems - after all any problem with saving the worldstate is serious to us all.
Scenario: you delete a character and account.
Almost immediately afterwards, you run a script that lists inactive accounts - this is normal enough, you are busy cleaning up the shard of old accounts.
The game's saver then saves the world state.