I've said this several times, but I'll say it again. Running for office is generally a "you have one job" situation. If you lose, you failed at this job.
Votes are the result of you convincing people to vote for you, which is part of the job.
Blaming the voters makes democracy meaningless.