Added ability to stop threads early in mt_tbs.py