Cleaned up wav_reader's error messages and exception throwing.