I don't know if this consider a bug as it should be related to the engine, but you can be defeated twice if surrender just before getting beat to death and deduc the essence twice.
thank you for the find - will look into a solution
solution found - will be available in next release.