fix memory leak on sound shutdown