updated killInstance method work with lastest CP changes