moved the exception handling code into the tween for heka+raven logging