Fixed file-close bug.