I don't know that this is the best thing to do, but when my son says, "I hate you", I say "Oh well" in a somewhat detached voice. He's 10, and I've learned that when he's in a mood like that, there's no winning with him. Most of the time, he'll come back and apologize later, on his own...