close EventSource if nothing is listening to it.
Prefer to handle detector status with push-button update, not continuous.  Otherwise, it can be taxing on the browser.