Revert "Keep folds when file closes"

This reverts commit c63e23dd8d126b11819540c6bbdac1987e2aaf14.