The shutdown currently kind of works and Threads.py file has been split into a sub-module of 9 files (+__init__). The diwa threads now also inherit from common thread class which supports the .stop() method.