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.