By Wendell Roelf
CAPE TOWN (Reuters) - South Africa's government will review its membership in the International Criminal Court (ICC) in the wake of a dispute with the court over Pretoria's failure to arrest Sudanese President Omar al-Bashir, a cabinet minister said on Thursday.
The diplomatic row erupted on June 15, when Bashir flew out of South Africa as world powers and activists urged the government to arrest him under a warrant from the global court on charges of masterminding genocide in Sudan's Darfur region.
"Cabinet decided that it will review South Africa's participation in the Rome Statutes of the International (Criminal) Court," Jeff Radebe, minister in the presidency, told reporters during a post-cabinet meeting briefing.
He added the government would only leave as a "last resort".
"Such a decision will only be taken when South Africa has exhausted all the remedies available to it," he said.
Bashir, who was in South Africa for a summit of the African Union, was allowed to take off even though a Pretoria court had issued an order banning him from leaving until the end of a hearing on his case.
As the row has simmered, top South African officials have said the country should cut ties with the ICC over its alleged bias towards Africa.
The ICC is "dangerous" and South Africa should withdraw from it, Gwede Mantashe, secretary general of the ruling African National Congress, said on Monday.
A South African judge asked prosecutors on Wednesday to consider charging government officials over the decision to allow Bashir to leave.
South Africa's government was due to issue an affidavit in court on Thursday explaining why it allowed Bashir to leave but its contents were not expected to immediately be made public.
(Writing by Ed Stoddard; Editing by James Macharia)