Send the exceptions to Analytics

I'd like to get your opinion.
I've slightly changed the analytics there bu the logic should remain the same.

BUG=#219