fix gauge handling for not yet pinned files during cleanup