Fix some quitting issues from skins2 when Qt in theDP.