Taiwan market closes out year at historic high