Print exception during failed handling

This fixes two issues.  One is that what was previousy line 48 (now 49) was calling traceback.format_exc(), but the traceback module was never imported.  The second is that if there is an error in the bugsnag exception handler, we definitely want to print a traceback for debugging.