Oil falls but ends the year on the biggest annual gain since 2009