when the stop button is clicked then wait until the sound stops
Thanks to sl smart mind I could make this.