I'd agree the first one was a hard call, but a call still. I wouldn't be so worried about AA or KK as 2 pair, although with the raise you'd have to wonder what cards someone would have just called with that would then have you beat.
The second one was a bad beat. When you hit the queen, you already had a pot of $400 to win there and then, and maybe you could have taken it by going all-in when the Queen hit. That said, apart from someone else having trips and hitting their one-outer, or someone having KK or AA and hitting their 2-outer, you were set for the pot, so I think it would on average be more profitable to play the way you did... so yell, curse, try not to throw your computer out the window... and then try to win your money back when you're feeling more yourself again.