Managing national elections has proved to be rough, messy, corrupt, and divisive.