Add some more logging for device malfunctioning pop-up.

(cherry picked from commit 8467726c415874f86d85b81b8bf581a11076d91f)
Don't set the audio device to be malfunctioning if it's been closed.

(cherry picked from commit 48e72965f4a7ba3bc2224d9c7ac42f049096b81d)