bug: close file