Added logging to vote.sh to help debug a confusing exit.