The only good work around I found to units dieing on their turn was to put in code to always leave them with 1 hp. But if you can tell the unit to end its turn then die when when it recieves a fatal blow from a counter attack or an overwatch attack that might help