Catches exceptions and forwards them to bugsnag