The rule "may the app close itself now" of the background idle timer (BackgroundIdleTimer): nothing that serves, plays or listens may be cut off by it.
The UPnP services (the media server, the renderer, the media proxy), every player and, since task 11.5 of issue 319, a running Snapcast client session (the listen test, later the renderer client) and a Snapcast feed count as "something is running". Pure: the timer reads the facts when it fires and only asks this class.
This is the rule of the automatic close only. The shutdown (sleep) timer that the user sets and the exit action are the user's own decision and end the app whatever runs (as for the UPnP services); a Snapcast client session that ends that way is recorded first, see Yaacc.exit().