They were extinct on the mainland , with the remaining populations confined to 32 offshore islands , until the first mainland release into the heavily fenced and monitored Karori Wildlife Sanctuary in 2005 . They were extinct on the mainland , with the remaining populations confined to 32 offshore islands , until the first mainland release into the heavily fenced and monitored Karori Sanctuary in 2005 .