Whatsapp Web caused such a problem in my case!!!
It constantly catches the audio device, thus preventing PC entering sleep mode!