Update goinvestigate
Close the input file when done