change to stop sound at the terminate