Fixing issue with music entering background or foreground