Fix leak of observed objects when CPPort is disconnected with active observations