Properly close input file in ui compilation code.