The process now exits correctly after the sound clip has finished playing.