Added closeFile() to be called from main, allowing fd to be open for
parsing lines later.