Stop closing files without reason