If the websocket disappears, PulseMonitor should notice, and perhaps try restarting.
Currently, it looks like it simply keeps listening to the old, now dead websocket forever if Halflife is restarted.
There is also the scenario of Halflife dying, so it should probably not attempt to restart too often if the websocket cannot be opened in the first place.