Ensure console error handler exits with code 1 for exceptions with string codes.