SYDNEY (Reuters) - Australia will spend up to A$250 million ($195 million) housing nearly 800 refugees and asylum seekers in Papua New Guinea for the next 12 months after its controversial detention center closes this month.

Security fences surround buildings inside the Manus Island detention centre in Papua New Guinea, February 11, 2017. Picture taken February 11, 2017. Behrouz Boochani/Handout via REUTERS

But hundreds of detainees are refusing the leave the Australian-run and funded Manus Island detention center, which will close on Oct. 31, fearing for their safety in the general community on Manus Island off Papua New Guinea’s north coast.

Behrouz Boochani, a Kurdish-Iranian journalist held on Manus Island for four years, said detainees fear being assaulted if they moved to the new, Australian-funded Lorengau Refugee Transit Centre.

“Refugees either moveto Lorengau where they risk being attacked by angry local people, or be taken over by PNG defense forces who have already seriously threatened their safety,” Boochani told Reuters.

Australia refuses to allow asylum seekers arriving by boat to reach its shores, instead detaining them in offshore centers on Manus and the South Pacific island nation of Nauru.

The United Nations and rights groups have for years cited human rights abuses among detainees in the centers.The Papua New Guinea Supreme Court ruled in 2016 that the Manus center was illegal and the government in the capital Port Moresby ordered its closure.

Australia had hoped the detainees would be either resettled into Papua New Guinea society or the United States, under a controversial refugee swap, by the time the center closed.

So far,