Revert "#3073 (feature/session): Fix a GC issue with the files driver"

This reverts commit c5519ce166943b744bbea75a87831132aced4247.