moved pos of defer close on file_7