Two years ago , when North Korea was refusing to enter talks over its nuclear arms program , China closed '' for cleaning '' the lone oil pipeline to North Korea , which then agreed to attend talks in Beijing .