closing file at end of goodcat