When the fighting began, Hermione knew that she only had two, well, three concerns. She needed to kill the snake and make sure that Voldemort ended up dead. If she could manage to get herself and Theo through the fighting alive, she would do that, too. But, there would be no point in living if she couldn't accomplish the other two first.