Added some try/catch to prevent crashes on bad WAV input.