Now closing proper file with fclose