redirector changed to reconfigured stdout in main. Avoids unneccessary
forever QThread