Make sure wav files are properly closed