GetHealth() appears to return a number greater than zero for the first 0-3 frames after a bot dies. You can test this by replacing the code you linked to with this:

	if not core.unitSelf:IsAlive() then
		if core.unitSelf:GetHealth() > 0 then
			BotEcho("THERE IS A MASSIVE PROBLEM HERE")
		end
		StopProfile()
		return
	end

The BotEcho will sometimes run when a bot dies, which should be impossible. So clearly using GetHealth() in onthink is causing a bug.

I will remove the check from Grinex and submit a pull for the other stuff.