avoid double-closing files