There's always been a multitude of problems switching between Half-Life and the desktop (from losing sound, lag crashes, system restarts, etc.) It's not your fault or the game's, it's the way Windows deals with the instances of the desktop and the game.