Fix hang issue

This is to fix the hanging issue when multiple memories played on the row and while exiting the app.