error handling including Airbrake reporting if present