A chaotic election campaign is over