Set up optional Sentry exception logging.