fixes wait for thread to finish when creating audio file