Fix for terminate instances, had to have it do them in chunks of 9, this was a bug in the parameter order passed invalidating the signature, ordinal order should work with the sort but it doesn't, this is a temp fix