Remove close file method.