onCloseRequested
Called on the main thread when this window is closing, whatever closed it.
A closed window is not a finished application. AppKit keeps its run loop going with nothing on screen, so a player that ignores this keeps demuxing, decoding and playing audio headless, which is what this window used to do. Whoever owns the playback session sets this, ends the session, and calls stop.