Catch errors to avoid showing error page on external services.