allow uncaught error events to pass in dev mode