Improve error reporting to Sentry.

We had some duplicate errors going due to logging when raising exceptions
and when catching them. Exception messages were also too unique and thus
weren't being grouped properly.

@dpoirier r? if you have time.