Only initialize Sentry when dsn is configured.

This is the next step on the path to disabling Sentry in tasks to
reduce the noise of errors.
Use the queue name to track metrics.
Add our own error handler.

It only reports to Sentry if it's configured, otherwise
the exception message is logged.
Bump Sidekiq to 2.18.