Track own thread in dispatcher.py