functions to generate and cleanup tmp files.
use __mktemp for wav file.
use TMP_MP4.
only make a tmp wav if we are using afconvert.
add functions to gracefully exit or move on.