adding instance cleanup processor and listener
adding instance cleanup handling to cartridge agent