Added closeFile function