third phase of quantum handling, instance removal and cleanup