attempt to clear stale references on VM C stack