Handle a case when local metadata exists even though instances have been terminated