Leaders scramble for final votes as UK's ugly election ends