Return on error.

Otherwise, we'll write a bad wav file.