Only fclose on valid FILE*