func CheckError(err error)
CheckError prints err to stderr and exits with code 1 if err is not nil. Otherwise, it is a no-op.
func Exit(msg string, args ...interface{})
Exit prints msg (with optional args), plus a newline, to stderr and exits with code 1.