Properly print out errorInfo if we exit with errors