Fixes multiple issues related to unplugging the last audio device and then plugging it back.