fixes closeAudio broken pipe error