stdout, stderr = process.communicate()
if process.returncode != 0 or not os.path.exists(output_filename):
    raise AudioProcessingException(stdout)
return output_filename
Handling subprocess crash in Windows