Fix closing issues (quit action does not trigger aboutToQuit signal)