Generalisation of scheduler thread to general queue threads

Have to clean up logger handlers in same cases to avoid duplicate messages

crashfix

Logging improvements

(0) -30 -10 -4 +4 +10 +30 tip

mercurial