improved exception reporting in browsers