src/io/source_wavread.c: avoid calling fclose twice, print an error if fclose fails