Forward the real exception to the error handler when unit testing.