Fixed sound command issues when opening app for first time. Also added app_closed command