fix cleanup callbacks

It seems that the aboutToQuit signal is not raised anymore with the
qt4reactor.
So we are calling all cleanup callbacks from the quit function.