I have some discussion on this here NoIdleSleepAssertion named: "Music is playing" blocks OSX sleeping