[PATCH v2 2/9] add errexit() to log an error message and exit with a single call