added InstanceDeleted checks to Instance Class