Use GApplication::shutdown to save playlist state and stop playback in proper order.