Taiwan shares close up 0.34%