as the other guy said, he wanted to kill himself in front of her to traumatize her so she can remember him to the rest of her life, the most tragic part is, this line of thinking is not unrealistic, couple of years ago there was a video of a dude doing this to his ex that went viral