Being the second instance of the same guy attacking the same lady at her home, she had advance knowledge of his thinking, apparent intent. That goes a long, long way ... Castle Doctrine or not. The fact that he was on a spree merely seals his fate. Hard for anyone to justify his actions; hard to condemn hers. Can't imagine her being hauled up to take the fall for ridding her home of a violent attacker.
... he returned to the home and "begun charging at the woman". By this time the woman had"retrieved a gun". "Fearing for her safety the woman shot him dead".