Is there any possibility if slot connected to aboutToQuit() signal is really called? The cout doesn't work (which is also described in docs). Is there anything I can do to make sure?